home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / graphics / artpacks / demns996 / liz-opti.doc < prev    next >
Text File  |  1996-08-31  |  1KB  |  30 lines

  1.               ─═══[∙]═══─ + -<[ dESCRiPTiON ]>- + ─═══[∙]═══─
  2.  
  3. Hi!
  4.  
  5. This is ELiZa about to bring you a silly piece of code I had to write for
  6. my Intro since I couldn't find anything alike it somewhere.
  7.  
  8. Fo syntax help just type OPTiMiZE and enjoy :)
  9.  
  10. What it's useful for is when you rip texture or single graphics from games
  11. (WADs or whatever). These are always based on a single game palette which
  12. makes their color values spawn the gamut of available colors. The original
  13. tile may include colors 16 and 45 but never color 30 or 178.
  14.  
  15. You have to convert the picture (using pcx2raw) to a pair of (NAME).RAW and
  16. (NAME).PAL files. This code will optimize the color layout so that you have
  17. for example 37 colors starting at a value you specify as base in a sequential 
  18. fashion. The RAW as well as PAL file will be written into a new pair of files.
  19.  
  20. The option "-o" is useful if you only want the part of the palette written
  21. to disk that get's used by the raw data.
  22.  
  23. As I said, this code was written for my personal use but I figured it might
  24. just as well be useful for the public. There are options like decrease color
  25. count or the like in PaintShop Pro but they will dither and screw up the
  26. palette.
  27.  
  28. Hope This Works Fine For You Guys ...
  29.  
  30. ELiZa^dEMONS